package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.DishTimeSettingDO;
import com.yongbao.model.request.DishTimeSettingRequest;
import com.yongbao.model.vo.DishTimeSettingVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DishTimeSettingDtoMapper {

    DishTimeSettingDtoMapper INSTANCE = Mappers.getMapper(DishTimeSettingDtoMapper.class);

    /**
    * DO to VO
    * @param dishTimeSettingDO
    * @return
    */
    DishTimeSettingVO do2VO(DishTimeSettingDO dishTimeSettingDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DishTimeSettingDO request2DO(DishTimeSettingRequest request);
}
